package org.gavin.core.constant;
/**
 * 公共常量
 * @author grl
 * @date 2022/04/07
 */
public class CommonConst {
    /**
     * 时间格式
     */
    public static final String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
    /**
     * 日期格式
     */
    public static final String DATE_PATTERN = "yyyy-MM-dd";
    /**
     * 字符编码
     */
    public static final String CHARACTER_ENCODING = "utf-8";
    /**
     * SERVER_TIME
     */
    public static final String SERVER_TIME = "timeStamp";
    /**
     * prefix
     */
    public static final String FIELD_MASK_PREFIX = "prefix";
    /**
     * suffix
     */
    public static final String FIELD_MASK_SUFFIX = "suffix";
    /**
     * non-existent
     */
    public static final String NON_EXISTENT = "non-existent";
    /**
     * 本地Ip 0:0:0:0:0:0:0:1
     */
    public static final String LOCAL_HOST_IP = "0:0:0:0:0:0:0:1";
    /**
     *  127.0.0.1
     */
    public static final String LOOPBACK_IP = "127.0.0.1";
    /**
     * int zero
     */
    public static final Integer ZERO = 0;
    /**
     * 默认通道
     */
    public static final Long CHANNEL_DEFAULT = 0L;
    /**
     * ZERO_STR
     */
    public static final String ZERO_STR = "0";
    /**
     * ZONE_STR
     */
    public static final String ONE_STR = "1";
    /**
     * Long -1
     */
    public static final Long MINUS_ONE = -1L;
    /**
     * int one
     */
    public static final Integer ONE = 1;
    /**
     * int two
     */
    public static final Integer TWO = 2;
    /**
     * int THREE
     */
    public static final Integer THREE = 3;
    /**
     * int FOUR
     */
    public static final Integer FOUR = 4;
    /**
     * int FIVE
     */
    public static final Integer FIVE = 5;

    public static final Integer SIX = 6;
    /**
     * int ten
     */
    public static final Integer TEN = 10;
    /**
     * NAME_LENGTH
     */
    public static final Integer NAME_LENGTH = 32;
    /**
     * 安全使用的key
     */
    public static final String SAFETY_KEY = "safetyKey";
    /**
     * 安全类型
     */
    public static final String SAFETY_TYPE = "safetyType";
    /**
     * 唯一值
     */
    public static final String UNIQUE_VALUE = "uniqueValue";
    /**
     * text/plain
     */
    public static final String CONTENT_TYPE_TEXT = "text/plain";
    /**
     * Content-Type
     */
    public static final String CONTENT_TYPE_KEY = "Content-Type";
    /**
     * application/json
     */
    public static final String CONTENT_TYPE_JSON = "application/json;charset=utf-8";
    /**
     * 客户端请求头 Ip key
     */
    public static final String CLENT_IP_HEADER_KEY = "X-Forwarded-For";

}
